// 25 权限管理 34
export default {
  path: '/systemmanage',
  name: 'systemmanage',
  icon: 'lock',
  authority: ['mgr:antd:perm'],
  routes: [
    {
      path: '/systemmanage/organization',
      name: 'organization',
      authority: ['mgr:perm:org'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/systemmanage/organization',
          redirect: '/systemmanage/organization/index',
        },
        {
          path: '/systemmanage/organization/index',
          component: './AuthorityManage/OrganManage/index',
        },
      ],
    },
    {
      path: '/systemmanage/role',
      name: 'role',
      authority: ['mgr:perm:role'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/systemmanage/role',
          redirect: '/systemmanage/role/index',
        },
        {
          path: '/systemmanage/role/index',
          component: './AuthorityManage/RoleManage/Index',
        },
        {
          path: '/systemmanage/role/add',
          name: 'add',
          component: './PermissionManage/Role/AddUpdate',
        },
        {
          path: '/systemmanage/role/update',
          name: 'update',
          component: './PermissionManage/Role/AddUpdate',
        },
        {
          path: '/systemmanage/role/detail',
          name: 'detail',
          component: './PermissionManage/Role/Detail',
        },
      ],
    },
    {
      path: '/systemmanage/user',
      name: 'user',
      authority: ['mgr:perm:user'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/systemmanage/user',
          redirect: '/systemmanage/user/index',
        },
        {
          path: '/systemmanage/user/index',
          component: './AuthorityManage/UserManage/Index',
        },
        {
          path: '/systemmanage/user/add',
          name: 'add',
          component: './AuthorityManage/UserManage/add',
        },
        {
          path: '/systemmanage/user/update',
          name: 'update',
          component: './AuthorityManage/UserManage/add',
        },
        {
          path: '/systemmanage/user/detail',
          name: 'detail',
          component: './AuthorityManage/UserManage/detail',
        },
      ],
    },
  ],
};
